<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css"   rel="stylesheet" type="text/css" />
<link href="{TPL}css/styleload.css"   rel="stylesheet" type="text/css" />
<link href="{TPL}css/AddItemPanel.css"   rel="stylesheet" type="text/css" />
<link href="{TPL}css/home.css"   rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/blue/color.css"/ >
<script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/OrderCart.css">
<script type="text/javascript" src="{TPL}js/jQuery.movePanel.min.js"></script>
<script type="text/javascript" src="{TPL}js/OrderCart.js"></script>
<style type="text/css">
        .lipin
        {
            border: #ddd solid 1px;
            padding: 10px 0 10px 10px;
            background: #ffffcc;
            margin-bottom: 3px;
        }
        .lipin h3
        {
            font-size: 12px;
            height: 22px;
        }
        .lipin li
        {
            line-height: 20px;
        }
        .lipin p
        {
            text-align: right;
            margin-right: 10px;
        }
        .lipin a
        {
            color: #ff9900;
        }
        .lipin a:hover
        {
            text-decoration: none;
            color: #ff0000;
        }
       .w8 .shanchu
        {
            background: url({TPL}images/sc_an.gif) no-repeat 0% -28px;
            margin-left: 10px;
            padding: 2px 0 5px 20px;
			height:10px;
        }
    </style>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/vpb_load_user_details.js"></script>
<link type="text/css" rel="stylesheet" href="css/styleload.css" />
<script type="text/javascript"> 
function update_expressno(id,obj){
	if(isNaN(obj.value)){
		upname="{lang s_note}";
	}else{
		upname="{lang m_o_no}";
	}
	if(obj.value.length<2){
	}else{
		$.post("<?php echo PHP_SELF?>?name=orderlist", {action:"updateexpressno",oid:id, value:obj.value}, 
		   function(data){
			if(data==1){alert("{lang m_modify}"+upname+"{lang m_as}["+obj.value+"]{lang m_succed}");}
			else if(data==3) {alert("{lang m_modify}"+upname+"{lang m_as}["+obj.value+"]{lang m_succed},{lang m_o_arrived_space}!");location.reload();}
			else{alert("{m_modify}{m_fail}");}
				  //alert(data);return false;	  
		});
	}
}

function update_deliver_using(id,obj){
	if(isNaN(obj.value)){
		upname="{lang s_deliver_note}";
	}else{
		upname="{lang m_o_no}";
	}
	if(obj.value.length<2){
	}else{
		$.post("<?php echo PHP_SELF?>?name=orderlist", {action:"updatedeliverusing",oid:id, value:obj.value}, 
		   function(data){
			if(data==1){alert("{lang m_modify}"+upname+"{lang m_as}["+obj.value+"]{lang m_succed}");}
			else if(data==3) {alert("{lang m_modify}"+upname+"{lang m_as}["+obj.value+"]{lang m_succed},{lang m_o_arrived_space}!");location.reload();}
			else{alert("{m_modify}{m_fail}");}
				  //alert(data);return false;	  
		});
	}
}

$(function() {
});
</script>
<title>{lang m_my_order} -{lang g_webname}</title>
</head>
<body>
{template 'header'}
<div class="admin">
  <div class="ding">
    <div class="shouye"> <a title="u_member_center" href="{url_m.php}"></a> </div>
    <div class="lb">
              <div class="weizhi">
                      <b>{lang m_location}：</b><a href="{url_m.php}">{lang u_member_center}</a><span>&gt;</span>{lang m_my_order}
                  </div>
                <div class="shezhi">
                    <p>
                        <a href="{url_m.php}">{lang u_member_center}</a><span>|</span>{lang m_set_style}：</p>
        <ul>
          <li onclick="changeStyle('orange')" class="mypanliS1"></li>
          <li onclick="changeStyle('grey')" class="mypanliS2"></li>
          <li onclick="changeStyle('blue')" class="mypanliS3"></li>
        </ul>
      </div>
    </div>
  </div>
{template 'member_left'}
  <div class="fill">
  <form method="post" action="{url_m.php?name=tosendorder}" enctype="multipart/form-data" name="form" onSubmit="return  submitToDeliverType()">
    <div id="productsList" class="qh">
      <ul class="xk">
        <li onclick="changePanel(0);" class="t">{lang m_o_all_goods}</li>
        <li onclick="changePanel(1);">{lang m_arrived_space}</li>
        <li onclick="changePanel(2);">{lang m_goods_ordered}</li>
        <li onclick="changePanel(3);">{lang m_o_mis}</li>
      </ul>
      <div style="margin: -35px 0pt 0pt; float: right; font-size: 12px; position: relative; width: 210px;"> <a style="float: right; color: rgb(255, 153, 0);" target="_blank" href="#">{lang m_slogn}！</a> </div>
      <div id="vPanel0" class="vPanel">
	{if !empty($dataarray123)}
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <!--<td width="54" height="30" align="center" class="liebiao_top liebiao_bg">{lang select}</td>-->
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang s_goods_name}</td>
            <td width="109" align="center" class="liebiao_top liebiao_bg">{lang m_ch_express_no}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_price}<font color="red">{lang s_price_ext}</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_num}</td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_weight}</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_o_state}<br/>{lang m_follow_package}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_action}</td>
			
          </tr>
		{loop $dataarray123 $r}
          <tr class="0deltr_{$r['oid']}">
            <!--<td width="54" height="60" align="center"  class="w8">
					<input type="checkbox" name="products[]" id="products" class="products" value="{$r['oid']}" />
			</td>-->
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
			{if ($r['state']==3) || ($r['state']==7)}
			<td width="109" height="60" align="center"  class="w3"><font color="red">
			<INPUT class=input onchange=update_expressno(<?php echo $r['oid']?>,this) id=expressno value="<?php echo $r['expressno'] ?>" maxLength=16 size=15 type=text name=expressno></font></td>
			{else}
			<td width="109" height="60" align="center"  class="w3"><font color="red">{$r['expressno']}</font></td>
			{/if}
            <td width="109" height="60" align="center" class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center" class="w5">{$r['goodsnum']}</td>
            <td width="111" height="60" align="center" class="w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">
			<a href="javascript:void(0);" class="vpb_link_attribute" title="{lang m_follow_package}" vasplus_programming_blog_user_details="{$r['expresscmp']},{$r['expressno']}">
			{$r['statename']}
			</a>
			</td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<a href='{$sft_url}' target='_blank' >{lang m_contact}</a><br/>
			<a href="javascript:;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang s_note}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript:;" onclick="showoRemark({$r['oid']})" class="lan"><img src="{TPL}images/wen.gif"/></a>
			<div class="orderremark" id="orderremark{$r['oid']}">
                        <p>
                            {$r['orderremark']}</p>
                        <button onclick="$('#orderremark{$r['oid']}').hide();return false;">
                        </button>
            </div>
			{/if}
			</td>
			
          </tr>
		  <!--Jek Add 20150123 15:23-->
		  {if ($r['state']==1) || ($r['state']==2) || ($r['state']==3) || ($r['state']==4)}
          <tr class="0deltr_{$r['oid']}">
            <td height="25" colspan="8" align="center" class="liebiao_lv liebiao_bg">{lang m_yunshu_type}:
			<select id="deliver_type" name="deliver_type" onchange="update_deliver_using(<?php echo $r['oid'] ?>,this)">
			<option <?php if($r['deliver_using'] == "12到15天"){ ?>selected<?php } ?> value='12到15天'>{lang m_deliver_use_7to10days}</option>
			<option <?php if($r['deliver_using'] == "14到17天"){ ?>selected<?php } ?> value='14到17天'>{lang m_deliver_use_9to12days}</option>
			<option <?php if($r['deliver_using'] == "海运"){ ?>selected<?php } ?> value='海运'>{lang m_deliver_use_haiyun}</option>
			<option <?php if($r['deliver_using'] == "普通空运"){ ?>selected<?php } ?> value='普通空运'>{lang m_deliver_use_putongkongyun}</option>
			<option <?php if($r['deliver_using'] == "敏感空运"){ ?>selected<?php } ?> value='敏感空运'>{lang m_deliver_use_mingankongyun}</option>
			
			</select>
			&nbsp;&nbsp;{lang g_goods}ID：{$r['oid']} &nbsp;&nbsp;{lang s_post_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>
		  {else}
		  <tr class="0deltr_{$r['oid']}">
            <td height="25" colspan="8" align="center" class="liebiao_lv liebiao_bg">{lang m_yunshu_type}:
			<?php if($r['deliver_using'] == "12到15天"){ ?>{lang m_deliver_use_7to10days}<?php } ?> 
			<?php if($r['deliver_using'] == "14到17天"){ ?>{lang m_deliver_use_9to12days}<?php } ?> 
			<?php if($r['deliver_using'] == "海运"){ ?>{lang m_deliver_use_haiyun}<?php } ?> 
			<?php if($r['deliver_using'] == "普通空运"){ ?>{lang m_deliver_use_putongkongyun}<?php } ?> 
			<?php if($r['deliver_using'] == "敏感空运"){ ?>{lang m_deliver_use_mingankongyun}<?php } ?> 
			
			&nbsp;&nbsp;{lang g_goods}ID：{$r['oid']} &nbsp;&nbsp;{lang s_post_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>
		  <!--Jek End 20150123 15:23-->
		  {/if}
		{/loop}
		<tr>
		
		<td colspan="8">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <td height="30" colspan="8" valign="middle" class="hg_50"><!--<span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>-->
			</span>
               <!--<input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="提交运送" /> -->           </td>
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang sl_shop_invited}!</p>
          <a href="{url_m.php?name=fillorders}">{lang u_want_shopping}</a><i>|</i><a href="{url_see.php}">{lang u_look_around}</a> </div>
	{/if}
      </div>
      <div style="display: none;" id="vPanel1" class="vPanel">
	{if !empty($dataarray4)}
        <table id="mytable1" width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="54" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_select}</td>
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang s_goods_name}</td>
            <td width="109" align="center" class="liebiao_top liebiao_bg">{lang m_ch_express_no}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_price}<font color="red">{lang s_price_ext}</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_num}</td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_weight}</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_o_state}<br/>{lang m_follow_package}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_action}</td>
          </tr>
		{loop $dataarray4 $r}
          <tr class="1deltr_{$r['oid']}">
			<td width="54" height="60" align="center"  class="w8">
					<input type="checkbox" name="products[]" id="products" class="products" value="{$r['oid']}" />
			</td>
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
			<td width="109" height="60" align="center" class="w3"><font color="red">{$r['expressno']}</font></td>
            <td width="109" height="60" align="center"  class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center" class="w5">{$r['goodsnum']}</td>
            <td width="111" height="60" align="center" class="w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">
			<a href="javascript:void(0);" class="vpb_link_attribute" title="{lang m_follow_package}" vasplus_programming_blog_user_details="{$r['expresscmp']},{$r['expressno']}">
			{$r['statename']}</a></td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<input id="orderremark{$r['oid']}" type="hidden" value="{$r['orderremark']}"/>
			<a href="javascript:;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang notes}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript:;" onclick="showorderRemark({$r['oid']}, this)" class="lan"><img src="{TPL}images/wen.gif"/></a>
			{/if}
			</td>
          </tr>
          <tr class="1deltr_{$r['oid']}">
            <td height="25" colspan="9" align="center" class="liebiao_lv liebiao_bg">{lang m_yunshu_type}:
			<?php if($r['deliver_using'] == "12到15天"){ ?>{lang m_deliver_use_7to10days}<?php } ?> 
			<?php if($r['deliver_using'] == "14到17天"){ ?>{lang m_deliver_use_9to12days}<?php } ?> 
			<?php if($r['deliver_using'] == "海运"){ ?>{lang m_deliver_use_haiyun}<?php } ?> 
			<?php if($r['deliver_using'] == "普通空运"){ ?>{lang m_deliver_use_putongkongyun}<?php } ?> 
			<?php if($r['deliver_using'] == "敏感空运"){ ?>{lang m_deliver_use_mingankongyun}<?php } ?> 
			
			&nbsp;&nbsp;{lang g_goods}ID：{$r['oid']} &nbsp;&nbsp;{lang s_post_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>
		{/loop}
		<tr><td colspan="9">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <td height="30" colspan="9" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang s_select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang s_selectall}</a>
			<a href="javascript:;" onclick="FCheck()">{lang s_selectreverse}</a>
			</span>
                <input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="{lang s_post}" />            </td>
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang sl_order_deliving}</p>
          <a href="{url_m.php?name=fillorders}">{lang u_continue_shopping}</a><i>|</i><a href="{url_see.php}">{lang u_look_around}</a> </div>
	{/if}
      </div>
	<div style="display: none;" class="vPanel" id="vPanel2">
	{if !empty($dataarray5)}
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr> 
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang s_goods_name}</td>
            <td width="109" align="center" class="liebiao_top liebiao_bg">{lang m_ch_express_no}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_price}<font color="red">{lang s_price_ext}</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_num}</td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_weight}</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_o_state}<br/>{lang m_follow_package}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_action}</td>
          </tr>
		{loop $dataarray5 $r}
          <tr class="2deltr_{$r['oid']}">
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
			<td width="109" height="60" align="center" class="w3"><font color="red">{$r['expressno']}</font></td>
            <td width="109" height="60" align="center"  class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center"class="w5">{$r['goodsnum']}</td>
            <td width="111" height="60" align="center" class="w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">
			<a href="javascript:void(0);" class="vpb_link_attribute" title="{lang m_follow_package}" vasplus_programming_blog_user_details="{$r['expresscmp']},{$r['expressno']}">
			{$r['statename']}</a></td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<input id="orderremark{$r['oid']}" type="hidden" value="{$r['orderremark']}"/>
			<a href="javascript:;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang s_note}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript:;" onclick="showorderRemark2('{$r['orderremark']}',{$r['oid']}, this)" class="lan"><img src="{TPL}images/wen.gif"/></a>
			{/if}
			</td>
          </tr>
		  <!--Jek Add 20150123 15:23-->
          <tr class="2deltr_{$r['oid']}">
            <td height="25" colspan="9" align="center" class="liebiao_lv liebiao_bg">{lang m_yunshu_type}:
			<?php if($r['deliver_using'] == "12到15天"){ ?>{lang m_deliver_use_7to10days}<?php } ?> 
			<?php if($r['deliver_using'] == "14到17天"){ ?>{lang m_deliver_use_9to12days}<?php } ?> 
			<?php if($r['deliver_using'] == "海运"){ ?>{lang m_deliver_use_haiyun}<?php } ?> 
			<?php if($r['deliver_using'] == "普通空运"){ ?>{lang m_deliver_use_putongkongyun}<?php } ?> 
			<?php if($r['deliver_using'] == "敏感空运"){ ?>{lang m_deliver_use_mingankongyun}<?php } ?> 
			
			&nbsp;&nbsp;{lang s_goods_name}ID：{$r['oid']} &nbsp;&nbsp;{lang s_post_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>
		  <!--Jek End 20150123 15:23-->
		{/loop}
		<tr><td colspan="9">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <!--<td height="30" colspan="8" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>
			</span>
			<input type="hidden" id="oids" name="oids" value=""/>
                <input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="提交运送" disabled="true" />           </td>--> 
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang sl_order_handling}。</p>
          <a href="{url_m.php?name=fillorders}">{lang u_continue_shopping}</a><i>|</i><a href="{url_see.php}">{lang u_look_around}</a> </div>
	{/if}	  
      </div>
	  <div style="display: none;" id="vPanel3" class="vPanel">
	{if !empty($dataarray6)}
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_pic}</td>
            <td width="467" align="center" class="liebiao_top liebiao_bg">{lang s_goods_name}</td>
            <td width="109" align="center" class="liebiao_top liebiao_bg">{lang m_ch_express_no}</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_price}<font color="red">{lang s_price_ext}</font></td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_num}</td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">{lang s_weight}</td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_o_state}<br/>{lang m_follow_package}</td>
            <td width="201" height="30" align="center" class="liebiao_top liebiao_bg">{lang m_action}</td>
          </tr>
		{loop $dataarray6 $r}
          <tr class="1deltr_{$r['oid']}">
            <td height="60" align="left" > <a style="border:#ccc 1px solid;float:left" target="_blank" href="{$r['goodsurl']}"> <img src="{$r['showimg']}" style="width:50px;height:50px" onerror="this.src='{TPL}images/noimg80.gif'" /></a>
            &nbsp;</td>
            <td height="60" align="left" ><a href="{$r['goodsurl']}" target="_blank"  class="lan hg"> {$r['goodsname']}</a></td>
			<td width="109" height="60" align="center" class="w3"><font color="red">{$r['expressno']}</font></td>
            <td width="109" height="60" align="center"  class="w4"><font color="red">{$r['goodsprice']}</font></td>
            <td width="111" height="60" align="center"class="w5">{$r['goodsnum']}</td>
            <td width="109" align="center" class="liebiao_top liebiao_bg w6">{$r['orderweight']}</td>
            <td width="193" height="60" align="center">
			<a href="javascript:void(0);" class="vpb_link_attribute" title="{lang m_follow_package}" vasplus_programming_blog_user_details="{$r['expresscmp']},{$r['expressno']}">
			{$r['statename']}</a></td>
            <td width="201" height="60" align="center">
			<input id="remark{$r['oid']}" type="hidden" value="{$r['goodsremark']}"/>
			<input id="orderremark{$r['oid']}" type="hidden" value="{$r['orderremark']}"/>
			<a href="javascript:;" onclick="showRemarkPanel({$r['oid']}, {if $r['state']==1}1{else}0{/if}, this)" class="lan">{lang notes}</a> 
			{if !empty($r['orderremark'])}
			<a href="javascript:;" onclick="showorderRemark2('{$r['orderremark']}',{$r['oid']}, this)" class="lan"><img src="{TPL}images/wen.gif"/></a>
			{/if}
			</td>
          </tr>
		  <!--Jek Add 20150123 15:23-->
          <tr class="1deltr_{$r['oid']}">
            <td height="25" colspan="9" align="center" class="liebiao_lv liebiao_bg">{lang m_yunshu_type}:
			<?php if($r['deliver_using'] == "12到15天"){ ?>{lang m_deliver_use_7to10days}<?php } ?> 
			<?php if($r['deliver_using'] == "14到17天"){ ?>{lang m_deliver_use_9to12days}<?php } ?> 
			<?php if($r['deliver_using'] == "海运"){ ?>{lang m_deliver_use_haiyun}<?php } ?> 
			<?php if($r['deliver_using'] == "普通空运"){ ?>{lang m_deliver_use_putongkongyun}<?php } ?> 
			<?php if($r['deliver_using'] == "敏感空运"){ ?>{lang m_deliver_use_mingankongyun}<?php } ?> 
			
			&nbsp;&nbsp;{lang s_goods_name}ID：{$r['oid']} &nbsp;&nbsp;{lang s_post_time}：{date('Y-m-d',$r['addtime'])}</td>
          </tr>
		  <!--Jek End 20150123 15:23-->
		{/loop}
		<tr><td colspan="9">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <!--<td height="30" colspan="8" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>
			</span>
                <input name="submit" type="submit" class="in" onmouseover="this.className='in_'" onmouseout="this.className='in'" value="提交运送" />           </td>--> 
          </tr>
        </table>		
	{else}
        <div class="kong">
          <p> {lang sl_order_deliving}。</p>
          <a href="{url_m.php?name=fillorders}">{lang u_continue_shopping}</a><i>|</i><a href="{url_see.php}">{lang u_look_around}</a> </div>
	{/if}
      </div>
    </div>
  </div>
  <div class="yj"> </div>
</div>
    <script type="text/javascript">
        function showOrderInfo() {
            var w = 0; var m = 0; var n = 0;
			var str = "";
			var yesorno = "";
			var expnoes = "";
            if ($(".products:checked", $("#vPanel" + vPanelIndex)).length > 0){
                $(".products:checked", $("#vPanel" + vPanelIndex)).each(function(i, d) {
						var terms = $.trim($(d).parent().nextAll(".w3").text());
						terms = terms.replace(" ", "|");          
						var find = new RegExp(terms, "g"); 					
						if(str.toLowerCase().match(find) == null)
						{
							str += $.trim($(d).parent().nextAll(".w3").text()) + " ";
							w += parseFloat($.trim($(d).parent().nextAll(".w6").text()));
						}
						n = parseFloat($.trim($(d).parent().nextAll(".w5").text()));
						m += parseFloat($.trim($(d).parent().nextAll(".w4").text()))*n;
                });
            }else{
                w = m = n = 0;
            $(".orderInfo", $("#vPanel" + vPanelIndex)).html('{lang s_total}:<span>' + w + '</span>,{lang s_total}:<span>{lang s_price_ext}' + m.toFixed(2) + '</span>({lang m_point}' + parseInt(Math.floor(m)) + ')');
        }}
		//$(":checkbox").click(showOrderInfo);
    </script>
	<script>
	$(function() {
		$(".products").change(function() {
			if(this.checked) {
				//Do stuff
				$("input[name='products[]']").each(function(){
					if(this.checked) {
						//Do stuff
						var expressme = $.trim($(this).parent().nextAll(".w3").text());
						if(expressme.length > 4)
						{
							expressme = expressme.replace(" ", "|");          
							var findexpressme = new RegExp(expressme, "g"); 
							$("input[name='products[]']:not(:checked)").each(function (i, d) {
								var myterms = $.trim($(d).parent().nextAll(".w3").text());
								myterms = myterms.replace(" ", "|");          
								var myfind = new RegExp(myterms, "g"); 						
								if (String(myfind) === String(findexpressme))
								{
									$(this).attr('checked', true);
								}
							});
						}
					}
				});
			}
			else
			{
				$("input[name='products[]']:not(:checked)").each(function(){
					//Do stuff
					var expressme = $.trim($(this).parent().nextAll(".w3").text());
					if(expressme.length > 4)
					{
						expressme = expressme.replace(" ", "|");          
						var findexpressme = new RegExp(expressme, "g"); 
						$("input[name='products[]']").each(function (i, d) {
							var myterms = $.trim($(d).parent().nextAll(".w3").text());
							myterms = myterms.replace(" ", "|");          
							var myfind = new RegExp(myterms, "g"); 						
							if (String(myfind) === String(findexpressme))
							{
								$(this).attr('checked', false);
							}
						});
					}
				});
			}
			var w = 0; var m = 0; var n = 0;
			var str = "";
			var yesorno = "";
			var expnoes = "";
			$("input[name='products[]']").each(function (i, d) {
				if(this.checked) {
					var terms = $.trim($(d).parent().nextAll(".w3").text());
					terms = terms.replace(" ", "|");          
					var find = new RegExp(terms, "g"); 					
					if(str.toLowerCase().match(find) == null)
					{
						str += $.trim($(d).parent().nextAll(".w3").text()) + " ";
						w += parseFloat($.trim($(d).parent().nextAll(".w6").text()));
					}
					n = parseFloat($.trim($(d).parent().nextAll(".w5").text()));
					m += parseFloat($.trim($(d).parent().nextAll(".w4").text()))*n;
				}
			});
			//$(".orderInfo", $("#vPanel" + vPanelIndex)).html('选中的商品预测重量总计:<span>' + w + '</span>，商品价值:<span>￥' + m.toFixed(2) + '</span>(可获积分' + parseInt(Math.floor(m)) + '点)');
			$(".orderInfo", $("#vPanel" + vPanelIndex)).html('选中的商品预测重量总计:<span>' + w + '</span>，商品价值:<span>￥' + m.toFixed(2) + '</span>');
		});
		});
	</script>
{template 'footer'}
    </form>
</body>
</html>
